package com.dynabook.ems.model.vo;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 根据BOM号查询工单响应VO
 */
@Data
@ApiModel(value = "根据BOM号查询工单响应", description = "根据BOM号查询工单的响应数据")
public class WorkOrderByBomNumVO {
    
    /**
     * 工单号列表
     */
    @ApiModelProperty(value = "工单号列表")
    private List<String> workOrderList;
    
    /**
     * BOM详情分页数据
     */
    @ApiModelProperty(value = "BOM详情分页数据")
    private Page<BomDetailItem> bomDetailPage;
    
    /**
     * BOM详情项
     */
    @Data
    @ApiModel(value = "BOM详情项", description = "BOM中的具体零部件信息")
    public static class BomDetailItem {
        
        @ApiModelProperty(value = "样品型号")
        private String modelType;
        
        @ApiModelProperty(value = "样品名称")
        private String modelName;
        
        @ApiModelProperty(value = "样品编号")
        private String fixedNo;
        
        @ApiModelProperty(value = "数量")
        private Integer totalNum;
        
        @ApiModelProperty(value = "单位")
        private String modelUnit;
        
        @ApiModelProperty(value = "类型")
        private String modelCategory;
        
        @ApiModelProperty(value = "备注")
        private String remark;
    }
}